package com.wuwei.tms.workbench.service;

import com.wuwei.tms.pojo.Borrow;
import com.wuwei.tms.utils.result.Result;
import com.wuwei.tms.vo.BorrowExcel;
import com.wuwei.tms.vo.BorrowPrint;
import com.wuwei.tms.vo.BorrowVo;

import java.util.List;

public interface BorrowService {

    Result<String> borrowAndReturn(BorrowVo borrowVo, Long operator);

    List<Borrow> listAndPagination(Integer currentPage, Integer pageSize, String search);

    List<BorrowExcel>  unReturnedPage(Integer currentPage, Integer pageSize, Long empno, String airplane);

    List<BorrowExcel> downloadUnReturned(Long empno, String airplane);

    /**
     * 获取用于打印的数据的方法
     * @param empno 工号
     * @return
     */
    List<BorrowPrint> printForList(Long empno);
}
